from redis import StrictRedis


class Config():
    DEBUG=None
    REDIS_HOST='127.0.0.1'
    REDIS_PORT=6379
    SECRET_KEY='nnaAEFT/bwqUxVi7Z992+T6g2naSkzwsE+pQr9BxtetWGP9BH9BLyZkEVscUIJ+7j4bF+5ME90IQUSGe7ioExA=='
    SQLALCHEMY_DATABASE_URI='mysql://root:mysql@localhost/info4'
    SQLALCHEMY_TRACK_MODIFICATIONS=False

    SESSION_TYPE='redis'
    SESSION_USE_SIGNER=True
    SESSION_REDIS=StrictRedis(host=REDIS_HOST,port=REDIS_PORT)
    PERMANENT_SESSION_LIFETIME=86400



class developmentconfig(Config):
    DEBUG=True

class productionconfig(Config):
    DEBUG=False

config={'development':developmentconfig,
        'production':productionconfig}